<template>
  <div>
    <!-- 标题栏 -->
    <NavBar :title="$route.meta.title"> </NavBar>
    <van-card :bordered="false">
      <template #desc>
        <van-button @click="getContent()">获取内容</van-button>
        <van-button @click="setContent()">清空内容</van-button>
        <in-editor v-model="content"></in-editor>
      </template>
    </van-card>
  </div>
</template>
<script>
import InEditor from "@/components/InEditor/InEditor";
import NavBar from "@/components/NavBar";

export default {
  components: {
    InEditor,
    NavBar
  },
  data() {
    return {
      content: ""
    };
  },
  methods: {
    getContent() {
      console.log(this.content);
    },
    setContent() {
      this.content = " ";
    }
  }
};
</script>
